package cn.wen.mybatis.framework.scripting.xmltags;

import java.util.List;

/**
 * 混合sql语句节点
 */
public class MixedSqlNode implements SqlNode {

  // 储存各种的节点
  private final List<SqlNode> contents;

  public MixedSqlNode(List<SqlNode> contents) {
    this.contents = contents;
  }

  @Override
  public boolean apply(DynamicContext context) {
    for (SqlNode sqlNode : contents) {
      sqlNode.apply(context);
    }
    return true;
  }
}
